Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support absolute paths in BOWER_COMPONENT_ROOT & tox (testing) #6

Merged
merged 3 commits into from
Jul 12, 2017

Conversation

jesseops
Copy link
Contributor

This resolves a problem deploying a packaged Flask application and adds tox for testing against multiple Python versions.

The current_app.root_path path ends up being something like /$VIRTUALENV/lib/python3.6/site-packages/$APPLICATION. Because the existing path search does a simple '/'.join(paths), with the first path being current_app.root_path, Flask-Bower does not work with a BOWER_COMPONENT_ROOT located above the installed path of the application.

To remedy this problem, I've changed the path generation to use os.path.join. This allows passing explicit paths while retaining the existing behavior. Additionally, it should enable Flask-Bower to work on platforms that use a separator other than '/'.

@jesseops
Copy link
Contributor Author

Anything you need from me to get this merged?

@lobeck
Copy link
Owner

lobeck commented Jul 12, 2017

Sorry, haven't done any python development in a while. Looks good, thank you for your contribution!

@lobeck lobeck merged commit a06d185 into lobeck:master Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants